<?php echo $this->doctype(); ?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:og="http://opengraphprotocol.org/schema/">
    <head>
        <title><?php echo $this->translate('APP_NAME') . ' - ' . $this->id_page; ?></title>  
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link rel="stylesheet" type="text/css" href="<?php echo STATIC_URL . '/media/style/common.css?v=' . SKIN_VERSION ?>" />
        <link rel="stylesheet" type="text/css" href="<?php echo STATIC_URL . '/media/skin/classic/fanpage.css?v=' . SKIN_VERSION ?>" />
		<link rel="stylesheet" type="text/css" href="<?php echo STATIC_URL . '/media/skin/main.css?v=' . SKIN_VERSION ?>" />
		<?php $this->loadSkin(SKIN_DEFAULT); ?>
		<?php echo $this->headLink(); ?>
		<?php echo $this->headScript(); ?>
		<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
		<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js" type="text/javascript"></script>
        <link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/base/jquery-ui.css" type="text/css" media="all" />
		<script type="text/javascript" src="<?php echo STATIC_URL . "/javascript/jquery.Jcrop.min.js" ?>"></script>
		<script type="text/javascript" src="<?php echo STATIC_URL . "/javascript/common.js" ?>"></script>
		<link rel="stylesheet" type="text/css" href="<?php echo STATIC_URL . "/media/style/jquery.Jcrop.css" ?>" />
		<?php echo $this->social->render('initHead'); ?>
		<?php echo $this->headMeta(); ?>
    </head>
	<body>
		<div id="master_container" class="sm810">
			<?php echo $this->social->render('initBody'); ?>
			<?php if ($this->social->isPageAdmin()): ?>		
				   <div class="sm_admin_pannel" style="height:48px">
					<div class="sm_admin_setting">
						<a class="sm_admin_setting_text" target="_blank" title="Go to Admin" 
						   href="<?php echo $this->social->url('/contest/manage/list/id_page/' . $this->social->getIdPage()); ?>" >
							Admin panel
						</a>
					</div>
					<div class="sm_paypal" style="float: right;">
						 <?php echo $this->partial('campaign.admin.phtml', 'payment', array('social' => $this->social));?>
					</div>
				</div>
			<?php else: ?>
				<?php echo $this->partial('campaign.phtml', 'payment', array('social' => $this->social));?>
			<?php endif; ?>
		</div>
        
        <?php echo $this->layout()->content; ?>
        
		<div class="ym_footer">
			<div class="footer_contain_img">
                <a class="footer_img" target="_blank" href="<?php echo YouNet_Util::getFanpageInstallUrl()?>"> </a>
			</div>
		</div>
		<?php echo $this->social->render('endBody') ?>
	</body>
</html>

